Python v3.7 HowTos:
Remove duplicates
Clone or copy a list
if not L
L = [] if not L: print("List is empty")
Output:
List is empty
See also
https://www.w3resource.com/python-exercises/list/python-data-type-list-exercise-8.php